package com.kuaiditu.assistant.api.xz_api;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PartMap;
import retrofit2.http.Path;

/**
 * Created by Eenie on 2017/8/11.
 * Email: eeniework@gmail.com
 * Des:
 */

public interface XingZheService {

    @Headers({"User-Agent:android", "sxg_app_client:sxg_app_ios/android", "sxg_ver:2.0"})
    @Multipart
    @POST("{methodCode}")
    ResponseBody a(@Path(encoded = true, value = "methodCode") String paramString, @PartMap Map<String, RequestBody> paramMap);

    @Headers({"Content-Type:application/x-www-form-urlencoded", "User-Agent:android", "sxg_app_client:sxg_app_ios/android", "sxg_ver:2.0"})
    @POST("android/{methodCode}")
    Observable<ResponseBody> ReqData(@Path("methodCode") String paramString, @Body RequestBody paramRequestBody);

    @Headers({"Content-Type:application/x-www-form-urlencoded", "User-Agent:android", "sxg_app_client:sxg_app_ios/android", "sxg_ver:2.0"})
    @POST("android/{methodCode}")
    @FormUrlEncoded
    Observable<YTBaseResponse> fetchData(@Path("methodCode") String paramString, @FieldMap Map<String, String> param);

}
